package leesoft.configuration.interfaces;

import java.util.Map;

import leesoft.configuration.core.RuntimeContext;

public class PlugIn {
	protected RuntimeContext session;
	protected Map parameters;
	protected String id;
	
	public void setRuntimeContext(RuntimeContext context){
		session=context;
	}
	public void setParameters(Map parameters){
		this.parameters=parameters;
	}
	public void setId(String id){
		this.id=id;
	}
	public void beforeExecute(){
		
	}
	public void afterExecute(){
		
	}
	public String getIdentifier(){
		if(id==null)
			return this.getClass().getName();
		else
			return id;
	}
}
